<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TextInputApplication.mxml</title>
<link rel="stylesheet" type="text/css" href="../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Application</span><span class="MXMLDefault_Text">
    layout=&quot;</span><span class="MXMLString">vertical</span><span class="MXMLDefault_Text">&quot;
    backgroundColor=&quot;</span><span class="MXMLString">0xFFFFFF</span><span class="MXMLDefault_Text">&quot;
    horizontalAlign=&quot;</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">&quot;
    
    viewSourceURL=&quot;</span><span class="MXMLString">srcview/TextInput/index.html</span><span class="MXMLDefault_Text">&quot;
    
    xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot; 
    xmlns:jwolib=&quot;</span><span class="MXMLString">http://www.jwolib.com/2006/mxml</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
    
    <span class="MXMLComponent_Tag">&lt;mx:Panel</span><span class="MXMLDefault_Text"> title=&quot;</span><span class="MXMLString">TextInput Example</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">500</span><span class="MXMLDefault_Text">&quot; height=&quot;</span><span class="MXMLString">300</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        
        <span class="MXMLComponent_Tag">&lt;mx:Form&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:FormHeading</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">properties/styles</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            
            <span class="MXMLComponent_Tag">&lt;mx:FormItem</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">appear as label</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:CheckBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">appearAsLabel_cb</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptString">&apos;textInput.appearAsLabel = &apos;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">appearAsLabel_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:FormItem&gt;</span>
            
            <span class="MXMLComponent_Tag">&lt;mx:FormItem</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">show clear button</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:CheckBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">showClearBtn_cb</span><span class="MXMLDefault_Text">&quot; selected=&quot;</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptString">&apos;textInput.showClearBtn = &apos;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">showClearBtn_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:FormItem&gt;</span>
            
            <span class="MXMLComponent_Tag">&lt;mx:FormItem</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">focus on clear</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:CheckBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">focusOnClear_cb</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptString">&apos;textInput.focusOnClear = &apos;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">focusOnClear_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:FormItem&gt;</span>
            
            <span class="MXMLComponent_Tag">&lt;mx:FormItem</span><span class="MXMLDefault_Text"> label=&quot;</span><span class="MXMLString">prompt</span><span class="MXMLDefault_Text">&quot; direction=&quot;</span><span class="MXMLString">horizontal</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:TextInput</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">prompt_ti</span><span class="MXMLDefault_Text">&quot; text=&quot;</span><span class="MXMLString">(edit)</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">50</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> text=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptString">&apos;textInput.prompt = &apos;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">prompt_ti</span>.<span class="ActionScriptDefault_Text">text</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:FormItem&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/mx:Form&gt;</span>
        
        <span class="MXMLComponent_Tag">&lt;jwolib:TextInput</span><span class="MXMLDefault_Text"> 
            text=&quot;</span><span class="MXMLString">com.jwopitz.controls.TextInput</span><span class="MXMLDefault_Text">&quot;
            
            appearAsLabel=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">appearAsLabel_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot; 
            showClearButton=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">showClearBtn_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
            focusOnClear=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">focusOnClear_cb</span>.<span class="ActionScriptDefault_Text">selected</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
            
            prompt=&quot;</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">prompt_ti</span>.<span class="ActionScriptDefault_Text">text</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">&quot;
            
            width=&quot;</span><span class="MXMLString">300</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
            
    <span class="MXMLComponent_Tag">&lt;/mx:Panel&gt;</span>
    
<span class="MXMLComponent_Tag">&lt;/mx:Application&gt;</span></pre></body>
</html>
